package com.loong.seller.model;

import com.loong.common.mybatis.entity.BaseEntity;
import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.math.BigDecimal;

@Builder
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "shop_delivery_rule")
public class ShopDeliveryRule extends BaseEntity {
    /**
     * 店铺id
     */
    @Column(name = "shop_id")
    private Long shopId;

    /**
     * 店铺配送规则名称
     */
    @Column(name = "rule_name")
    private String ruleName;

    /**
     * 店铺配送规则命中范围
     */
    @Column(name = "rule_range")
    private String ruleRange;

    /**
     * 店铺配送规则执行动作
     */
    @Column(name = "rule_action")
    private String ruleAction;

    /**
     * 店铺配送规则操作的值
     */
    @Column(name = "rule_value")
    private BigDecimal ruleValue;

    /**
     * 店铺配送规则类型 （区分维度 时间和距离）
     */
    @Column(name = "rule_type")
    private Integer ruleType;
}